package hash;

/**
 * @author zerorain
 * @date 2022/03/18 13:47
 **/
public class HashTest {
    public static void main(String[] args) {
        int hash = 120;
        // 16 = 2 ^ 4
        int n = 16;
        System.out.println(hash % n);
        System.out.println((n - 1) & hash);
    }
}